home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / stepp000.swf / scripts / frame_1145 / PlaceObject2_2224_1031 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2008-11-12  |  40.0 KB  |  859 lines

  1. onClipEvent(enterFrame){
  2.    tellTarget("_root")
  3.    {
  4.       if(eval("/Variables:Stoppe") != true)
  5.       {
  6.          if(eval("/Variables:GardeEntre") ne "")
  7.          {
  8.             if(eval("/Variables:GardeEntre") eq "OuvrePorte")
  9.             {
  10.                tellTarget("_root.Animatiques")
  11.                {
  12.                   gotoAndStop("OuvrePorte");
  13.                }
  14.             }
  15.             else if(eval("/Variables:GardeEntre") eq "GardesSorts")
  16.             {
  17.                tellTarget("_root.Animatiques")
  18.                {
  19.                   gotoAndStop("GardesSorts");
  20.                }
  21.             }
  22.             else if(eval("/Variables:GardeEntre") eq "PorteDefonce")
  23.             {
  24.                tellTarget("_root.Animatiques")
  25.                {
  26.                   gotoAndStop("PorteDefonce");
  27.                }
  28.             }
  29.             else
  30.             {
  31.                set("/Variables:GardeEntre","");
  32.             }
  33.          }
  34.          else
  35.          {
  36.             setProperty("_root.Gts.ZoneDeplace.GtsSteppen", _X, _root.Meg._x);
  37.             setProperty("_root.Gts.ZoneDeplace.GtsSteppen", _Y, _root.Meg._y);
  38.             if(_root.CacheVersTab2.hitTest(_root.Meg._x,_root.Meg._y,true))
  39.             {
  40.                set("/Variables:From","Tab1");
  41.                tellTarget("_root")
  42.                {
  43.                   gotoAndStop("Tab2Ini");
  44.                   play();
  45.                }
  46.             }
  47.             if(_root.CacheZoneTir.hitTest(_root.Meg._x,_root.Meg._y,true))
  48.             {
  49.                if(_root.GardeDerriere.GardeTir.CacheE.hitTest(_root.Meg._x,_root.Meg._y,true))
  50.                {
  51.                   tellTarget("_root.GardeDerriere.GardeTir")
  52.                   {
  53.                      gotoAndStop("E");
  54.                   }
  55.                }
  56.                if(_root.GardeDerriere.GardeTir.CacheNE.hitTest(_root.Meg._x,_root.Meg._y,true))
  57.                {
  58.                   tellTarget("_root.GardeDerriere.GardeTir")
  59.                   {
  60.                      gotoAndStop("NE");
  61.                   }
  62.                }
  63.                if(_root.GardeDerriere.GardeTir.CacheN.hitTest(_root.Meg._x,_root.Meg._y,true))
  64.                {
  65.                   tellTarget("_root.GardeDerriere.GardeTir")
  66.                   {
  67.                      gotoAndStop("N");
  68.                   }
  69.                }
  70.                if(_root.GardeDerriere.GardeTir.CacheNO.hitTest(_root.Meg._x,_root.Meg._y,true))
  71.                {
  72.                   tellTarget("_root.GardeDerriere.GardeTir")
  73.                   {
  74.                      gotoAndStop("NO");
  75.                   }
  76.                }
  77.                if(_root.GardeDerriere.GardeTir.CacheO.hitTest(_root.Meg._x,_root.Meg._y,true))
  78.                {
  79.                   tellTarget("_root.GardeDerriere.GardeTir")
  80.                   {
  81.                      gotoAndStop("O");
  82.                   }
  83.                }
  84.                if(_root.GardeDerriere.GardeTir.CacheSO.hitTest(_root.Meg._x,_root.Meg._y,true))
  85.                {
  86.                   tellTarget("_root.GardeDerriere.GardeTir")
  87.                   {
  88.                      gotoAndStop("SO");
  89.                   }
  90.                }
  91.                if(_root.GardeDerriere.GardeTir.CacheS.hitTest(_root.Meg._x,_root.Meg._y,true))
  92.                {
  93.                   tellTarget("_root.GardeDerriere.GardeTir")
  94.                   {
  95.                      gotoAndStop("S");
  96.                   }
  97.                }
  98.                if(_root.GardeDerriere.GardeTir.CacheSE.hitTest(_root.Meg._x,_root.Meg._y,true))
  99.                {
  100.                   tellTarget("_root.GardeDerriere.GardeTir")
  101.                   {
  102.                      gotoAndStop("SE");
  103.                   }
  104.                }
  105.                if(_root.GardeDevant.GardeTir.CacheE.hitTest(_root.Meg._x,_root.Meg._y,true))
  106.                {
  107.                   tellTarget("_root.GardeDevant.GardeTir")
  108.                   {
  109.                      gotoAndStop("E");
  110.                   }
  111.                }
  112.                if(_root.GardeDevant.GardeTir.CacheNE.hitTest(_root.Meg._x,_root.Meg._y,true))
  113.                {
  114.                   tellTarget("_root.GardeDevant.GardeTir")
  115.                   {
  116.                      gotoAndStop("NE");
  117.                   }
  118.                }
  119.                if(_root.GardeDevant.GardeTir.CacheN.hitTest(_root.Meg._x,_root.Meg._y,true))
  120.                {
  121.                   tellTarget("_root.GardeDevant.GardeTir")
  122.                   {
  123.                      gotoAndStop("N");
  124.                   }
  125.                }
  126.                if(_root.GardeDevant.GardeTir.CacheNO.hitTest(_root.Meg._x,_root.Meg._y,true))
  127.                {
  128.                   tellTarget("_root.GardeDevant.GardeTir")
  129.                   {
  130.                      gotoAndStop("NO");
  131.                   }
  132.                }
  133.                if(_root.GardeDevant.GardeTir.CacheO.hitTest(_root.Meg._x,_root.Meg._y,true))
  134.                {
  135.                   tellTarget("_root.GardeDevant.GardeTir")
  136.                   {
  137.                      gotoAndStop("O");
  138.                   }
  139.                }
  140.                if(_root.GardeDevant.GardeTir.CacheSO.hitTest(_root.Meg._x,_root.Meg._y,true))
  141.                {
  142.                   tellTarget("_root.GardeDevant.GardeTir")
  143.                   {
  144.                      gotoAndStop("SO");
  145.                   }
  146.                }
  147.                if(_root.GardeDevant.GardeTir.CacheS.hitTest(_root.Meg._x,_root.Meg._y,true))
  148.                {
  149.                   tellTarget("_root.GardeDevant.GardeTir")
  150.                   {
  151.                      gotoAndStop("S");
  152.                   }
  153.                }
  154.                if(_root.GardeDevant.GardeTir.CacheSE.hitTest(_root.Meg._x,_root.Meg._y,true))
  155.                {
  156.                   tellTarget("_root.GardeDevant.GardeTir")
  157.                   {
  158.                      gotoAndStop("SE");
  159.                   }
  160.                }
  161.             }
  162.             if(_root.CacheVersTab5.hitTest(_root.Meg._x,_root.Meg._y,true))
  163.             {
  164.                tellTarget("_root")
  165.                {
  166.                   gotoAndStop("Tab5Ini");
  167.                   play();
  168.                }
  169.             }
  170.             if(_root.CachePorte.hitTest(_root.Meg._x,_root.Meg._y,true) and eval("/Variables:ObjetSelect") != 1 and Key.isDown(Key.SPACE) and eval("/Variables:Porte") == 0)
  171.             {
  172.                set("/Variables:Porte",1);
  173.                tellTarget("_root.Sons")
  174.                {
  175.                   gotoAndStop("SndFermePorte");
  176.                   play();
  177.                }
  178.                tellTarget("_root.Porte")
  179.                {
  180.                   gotoAndStop("PorteFermee");
  181.                }
  182.                tellTarget("_root.Collider")
  183.                {
  184.                   gotoAndStop(2);
  185.                }
  186.             }
  187.             if(_root.CachePorte.hitTest(_root.Meg._x,_root.Meg._y,true) and eval("/Variables:ObjetSelect") == 1 and Key.isDown(Key.SPACE))
  188.             {
  189.                set("/Variables:Porte",2);
  190.                tellTarget("_root.Animatiques")
  191.                {
  192.                   gotoAndStop("BarrePorte");
  193.                }
  194.             }
  195.             if(_root.CacheBarrePorte.hitTest(_root.Meg._x,_root.Meg._y,true) and eval("/Variables:BarrePorteRamasse") == false and Key.isDown(Key.SPACE))
  196.             {
  197.                tellTarget("_root.Porte.BarrePorte")
  198.                {
  199.                   play();
  200.                }
  201.                loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=6&stage=2",0);
  202.                set("/Variables:InvNb",eval("/Variables:InvNb") + 1);
  203.                tellTarget("_root.Sons")
  204.                {
  205.                   gotoAndStop("SndRamasse");
  206.                   play();
  207.                }
  208.                set("/Variables:InvObjet" + eval("/Variables:InvNb"),1);
  209.                tellTarget("_root.Inventaire.ObjetAffiche")
  210.                {
  211.                   gotoAndStop(2);
  212.                }
  213.                set("/Variables:BarrePorteRamasse",true);
  214.             }
  215.          }
  216.          if(!Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up) and Idle == false)
  217.          {
  218.             Idle = true;
  219.             tellTarget("_root.Meg/Obj")
  220.             {
  221.                gotoAndStop("Idle");
  222.                play();
  223.             }
  224.          }
  225.          if(Key.isDown(Key.SHIFT))
  226.          {
  227.             set("/Variables:Run",true);
  228.          }
  229.          else
  230.          {
  231.             set("/Variables:Run",false);
  232.          }
  233.          if(Key.isDown(Key.RIGHT) and !Key.isDown(Key.UP) and !Key.isDown(Key.DOWN))
  234.          {
  235.             if(Key.isDown(Key.CONTROL))
  236.             {
  237.                if(eval("/Variables:Dir") == "Right")
  238.                {
  239.                   set("/Variables:Dir","Right");
  240.                   Idle = false;
  241.                   set("/Variables:Stoppe",true);
  242.                   tellTarget("_root.Meg/Obj")
  243.                   {
  244.                      gotoAndStop("Saute");
  245.                      play();
  246.                   }
  247.                }
  248.                else
  249.                {
  250.                   set("/Variables:Dir","Right");
  251.                   tellTarget("_root.Meg")
  252.                   {
  253.                      gotoAndStop("Right");
  254.                   }
  255.                }
  256.             }
  257.             else
  258.             {
  259.                set("/Variables:Dir","Right");
  260.                if(Idle == true)
  261.                {
  262.                   tellTarget("_root.Meg/Obj")
  263.                   {
  264.                      gotoAndStop(1);
  265.                   }
  266.                   Idle = false;
  267.                }
  268.                tellTarget("_root.Meg")
  269.                {
  270.                   gotoAndStop("Right");
  271.                }
  272.                tellTarget("_root.Meg/Obj")
  273.                {
  274.                   nextFrame();
  275.                }
  276.                if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y,true) == false)
  277.                {
  278.                   if(eval("/Variables:Run") == true)
  279.                   {
  280.                      setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  281.                      setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  282.                   }
  283.                   setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  284.                }
  285.             }
  286.          }
  287.          if(Key.isDown(Key.LEFT) and !Key.isDown(Key.UP) and !Key.isDown(Key.DOWN))
  288.          {
  289.             if(Key.isDown(Key.CONTROL))
  290.             {
  291.                if(eval("/Variables:Dir") == "Left")
  292.                {
  293.                   set("/Variables:Dir","Left");
  294.                   Idle = false;
  295.                   set("/Variables:Stoppe",true);
  296.                   tellTarget("_root.Meg/Obj")
  297.                   {
  298.                      gotoAndStop("Saute");
  299.                      play();
  300.                   }
  301.                }
  302.                else
  303.                {
  304.                   set("/Variables:Dir","Left");
  305.                   tellTarget("_root.Meg")
  306.                   {
  307.                      gotoAndStop("Left");
  308.                   }
  309.                }
  310.             }
  311.             else
  312.             {
  313.                set("/Variables:Dir","Left");
  314.                if(Idle == true)
  315.                {
  316.                   tellTarget("_root.Meg/Obj")
  317.                   {
  318.                      gotoAndStop(1);
  319.                   }
  320.                   Idle = false;
  321.                }
  322.                tellTarget("_root.Meg")
  323.                {
  324.                   gotoAndStop("Left");
  325.                }
  326.                tellTarget("_root.Meg/Obj")
  327.                {
  328.                   nextFrame();
  329.                }
  330.                if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y,true) == false)
  331.                {
  332.                   if(eval("/Variables:Run") == true)
  333.                   {
  334.                      setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  335.                      setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  336.                   }
  337.                   setProperty("_root.Meg", _X, _root.Meg._x - eval("/Variables:Delta"));
  338.                }
  339.             }
  340.          }
  341.          if(Key.isDown(Key.UP) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left))
  342.          {
  343.             set("/Variables:Dir","Right");
  344.             if(Key.isDown(Key.CONTROL))
  345.             {
  346.                Idle = false;
  347.                set("/Variables:Stoppe",true);
  348.                tellTarget("_root.Meg/Obj")
  349.                {
  350.                   gotoAndStop("Saute");
  351.                   play();
  352.                }
  353.             }
  354.             else
  355.             {
  356.                if(Idle == true)
  357.                {
  358.                   tellTarget("_root.Meg/Obj")
  359.                   {
  360.                      gotoAndStop(1);
  361.                   }
  362.                   Idle = false;
  363.                }
  364.                tellTarget("_root.Meg")
  365.                {
  366.                   gotoAndStop("Up");
  367.                }
  368.                tellTarget("_root.Meg/Obj")
  369.                {
  370.                   nextFrame();
  371.                }
  372.                if(Collider.hitTest(_root.Meg._x,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
  373.                {
  374.                   if(eval("/Variables:Run") == true)
  375.                   {
  376.                      setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  377.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  378.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  379.                      setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  380.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  381.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  382.                   }
  383.                   set("/Variables:Delta",_root.Meg._yscale / 7);
  384.                   setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  385.                   setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  386.                   setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  387.                }
  388.             }
  389.          }
  390.          if(Key.isDown(Key.DOWN) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left))
  391.          {
  392.             set("/Variables:Dir","Down");
  393.             if(Key.isDown(Key.CONTROL))
  394.             {
  395.                tellTarget("_root.Meg/Obj")
  396.                {
  397.                   gotoAndStop("Saute");
  398.                   play();
  399.                }
  400.                Idle = false;
  401.                set("/Variables:Stoppe",true);
  402.             }
  403.             else
  404.             {
  405.                if(Idle == true)
  406.                {
  407.                   tellTarget("_root.Meg/Obj")
  408.                   {
  409.                      gotoAndStop(1);
  410.                   }
  411.                   Idle = false;
  412.                }
  413.                tellTarget("_root.Meg")
  414.                {
  415.                   gotoAndStop("DOWN");
  416.                }
  417.                tellTarget("_root.Meg/Obj")
  418.                {
  419.                   nextFrame();
  420.                }
  421.                if(Collider.hitTest(_root.Meg._x,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
  422.                {
  423.                   if(eval("/Variables:Run") == true)
  424.                   {
  425.                      setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  426.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  427.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  428.                      setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  429.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  430.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  431.                   }
  432.                   set("/Variables:Delta",_root.Meg._yscale / 7);
  433.                   setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  434.                   setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  435.                   setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  436.                }
  437.             }
  438.          }
  439.          if(Key.isDown(Key.UP) and Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Down))
  440.          {
  441.             set("/Variables:Dir","Right");
  442.             if(Key.isDown(Key.CONTROL))
  443.             {
  444.                Idle = false;
  445.                set("/Variables:Stoppe",true);
  446.                tellTarget("_root.Meg/Obj")
  447.                {
  448.                   gotoAndStop("Saute");
  449.                   play();
  450.                }
  451.             }
  452.             else
  453.             {
  454.                if(Idle == true)
  455.                {
  456.                   tellTarget("_root.Meg/Obj")
  457.                   {
  458.                      gotoAndStop(1);
  459.                   }
  460.                   Idle = false;
  461.                }
  462.                tellTarget("_root.Meg")
  463.                {
  464.                   gotoAndStop("UpRight");
  465.                }
  466.                tellTarget("_root.Meg/Obj")
  467.                {
  468.                   nextFrame();
  469.                }
  470.                if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y - eval("Variables:Delta") * 8,true) == false)
  471.                {
  472.                   if(eval("/Variables:Run") == true)
  473.                   {
  474.                      setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  475.                      setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  476.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  477.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  478.                      setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  479.                      setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  480.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  481.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  482.                   }
  483.                   set("/Variables:Delta",_root.Meg._yscale / 7);
  484.                   setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  485.                   setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  486.                   setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  487.                   setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  488.                }
  489.             }
  490.          }
  491.          if(Key.isDown(Key.UP) and !Key.isDown(Key.Right) and Key.isDown(Key.Left) and !Key.isDown(Key.Down))
  492.          {
  493.             set("/Variables:Dir","Left");
  494.             if(Key.isDown(Key.CONTROL))
  495.             {
  496.                Idle = false;
  497.                set("/Variables:Stoppe",true);
  498.                tellTarget("_root.Meg/Obj")
  499.                {
  500.                   gotoAndStop("Saute");
  501.                   play();
  502.                }
  503.             }
  504.             else
  505.             {
  506.                if(Idle == true)
  507.                {
  508.                   tellTarget("_root.Meg/Obj")
  509.                   {
  510.                      gotoAndStop(1);
  511.                   }
  512.                   Idle = false;
  513.                }
  514.                tellTarget("_root.Meg")
  515.                {
  516.                   gotoAndStop("UpLeft");
  517.                }
  518.                tellTarget("_root.Meg/Obj")
  519.                {
  520.                   nextFrame();
  521.                }
  522.                if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y - eval("Variables:Delta") * 8,true) == false)
  523.                {
  524.                   if(eval("/Variables:Run") == true)
  525.                   {
  526.                      setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  527.                      setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  528.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  529.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  530.                      setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  531.                      setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  532.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  533.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  534.                   }
  535.                   set("/Variables:Delta",_root.Meg._yscale / 7);
  536.                   setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
  537.                   setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  538.                   setProperty("_root.Meg", _xscale, _root.Meg._xscale - eval("/Variables:Decale"));
  539.                   setProperty("_root.Meg", _yscale, _root.Meg._yscale - eval("/Variables:Decale"));
  540.                }
  541.             }
  542.          }
  543.          if(Key.isDown(Key.Down) and !Key.isDown(Key.Right) and Key.isDown(Key.Left) and !Key.isDown(Key.Up))
  544.          {
  545.             set("/Variables:Dir","Left");
  546.             if(Key.isDown(Key.CONTROL))
  547.             {
  548.                Idle = false;
  549.                set("/Variables:Stoppe",true);
  550.                tellTarget("_root.Meg/Obj")
  551.                {
  552.                   gotoAndStop("Saute");
  553.                   play();
  554.                }
  555.             }
  556.             else
  557.             {
  558.                if(Idle == true)
  559.                {
  560.                   tellTarget("_root.Meg/Obj")
  561.                   {
  562.                      gotoAndStop(1);
  563.                   }
  564.                   Idle = false;
  565.                }
  566.                tellTarget("_root.Meg")
  567.                {
  568.                   gotoAndStop("DownLeft");
  569.                }
  570.                tellTarget("_root.Meg/Obj")
  571.                {
  572.                   nextFrame();
  573.                }
  574.                if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y + eval("Variables:Delta") * 8,true) == false)
  575.                {
  576.                   if(eval("/Variables:Run") == true)
  577.                   {
  578.                      setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  579.                      setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  580.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  581.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  582.                      setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  583.                      setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  584.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  585.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  586.                   }
  587.                   set("/Variables:Delta",_root.Meg._yscale / 7);
  588.                   setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  589.                   setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
  590.                   setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  591.                   setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  592.                }
  593.             }
  594.          }
  595.          if(Key.isDown(Key.Down) and Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up))
  596.          {
  597.             set("/Variables:Dir","Right");
  598.             if(Key.isDown(Key.CONTROL))
  599.             {
  600.                Idle = false;
  601.                set("/Variables:Stoppe",true);
  602.                tellTarget("_root.Meg/Obj")
  603.                {
  604.                   gotoAndStop("Saute");
  605.                   play();
  606.                }
  607.             }
  608.             else
  609.             {
  610.                if(Idle == true)
  611.                {
  612.                   tellTarget("_root.Meg/Obj")
  613.                   {
  614.                      gotoAndStop(1);
  615.                   }
  616.                   Idle = false;
  617.                }
  618.                tellTarget("_root.Meg")
  619.                {
  620.                   gotoAndStop("DownRight");
  621.                }
  622.                tellTarget("_root.Meg/Obj")
  623.                {
  624.                   nextFrame();
  625.                }
  626.                if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y + eval("Variables:Delta") * 8,true) == false)
  627.                {
  628.                   if(eval("/Variables:Run") == true)
  629.                   {
  630.                      setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  631.                      setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  632.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  633.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  634.                      setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  635.                      setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  636.                      setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  637.                      setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  638.                   }
  639.                   set("/Variables:Delta",_root.Meg._yscale / 7);
  640.                   setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
  641.                   setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
  642.                   setProperty("_root.Meg", _xscale, _root.Meg._xscale + eval("/Variables:Decale"));
  643.                   setProperty("_root.Meg", _yscale, _root.Meg._yscale + eval("/Variables:Decale"));
  644.                }
  645.             }
  646.          }
  647.          if(Key.isDown(Key.CONTROL) and !Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up))
  648.          {
  649.             Idle = false;
  650.             set("/Variables:Stoppe",true);
  651.             tellTarget("_root.Meg/Obj")
  652.             {
  653.                gotoAndStop("Saute");
  654.                play();
  655.             }
  656.          }
  657.          if(Trou.hitTest(_root.Meg._x,_root.Meg._y,true) == true)
  658.          {
  659.             set("/Variables:DeltaTombe",eval("/Trou:Niveau"));
  660.             tellTarget("_root.Meg")
  661.             {
  662.                gotoAndStop("Tombe");
  663.             }
  664.             set("/Variables:Stoppe",true);
  665.          }
  666.       }
  667.       if(eval("/Variables:J2") == true)
  668.       {
  669.          if(eval("/Variables:VersEntree2") == 0 and eval("/Variables:VersEntree3") == 0)
  670.          {
  671.             if(eval("/Variables:Tableau") ne "ZoneDeplace/GtsSteppen")
  672.             {
  673.                if(getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) < getProperty("/Gts/" + eval("/Variables:Tableau"), _X) + 1 and getProperty("/Gts/" + eval("/Variables:Tableau"), _X) - 1 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) and getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) < getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) + 1 and getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) - 1 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y))
  674.                {
  675.                   setProperty("/Gts/" + eval("/Variables:BebitteCours"), _X, getProperty("/Gts/" + eval("/Variables:Tableau"), _X));
  676.                   setProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y, getProperty("/Gts/" + eval("/Variables:Tableau"), _Y));
  677.                   if(getProperty("/Gts/Bebitte", _visible) == 1)
  678.                   {
  679.                      setProperty("/Gts/Bebitte", _visible, 0);
  680.                      setProperty("/Gts/Bebitte" + eval("/Variables:Tableau"), _visible, 1);
  681.                      set("/Variables:BebitteCours","Bebitte" + eval("/Variables:Tableau"));
  682.                      if(eval("/Variables:BebitteCours") eq "BebitteEntree2")
  683.                      {
  684.                         set("/Variables:VersEntree2",1);
  685.                         set("/Variables:Tableau","Entree21");
  686.                      }
  687.                      else if(eval("/Variables:BebitteCours") eq "BebitteEntree3")
  688.                      {
  689.                         set("/Variables:VersEntree3",1);
  690.                         set("/Variables:Tableau","Entree31");
  691.                      }
  692.                      else
  693.                      {
  694.                         set("/Variables:Tableau","ZoneDeplace/GtsSteppen");
  695.                      }
  696.                   }
  697.                   else
  698.                   {
  699.                      setProperty("/Gts/Bebitte", _visible, 1);
  700.                      setProperty("/Gts/Bebitte" + eval("/Variables:Tableau"), _visible, 0);
  701.                      set("/Variables:BebitteCours","Bebitte");
  702.                      set("/Variables:Tableau",eval("/Variables:TableauTemp"));
  703.                   }
  704.                }
  705.             }
  706.             else if(getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) < getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) + 20 and getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) - 20 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) and getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) < getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) + 20 and getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) - 20 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y))
  707.             {
  708.                tellTarget("/Animatiques")
  709.                {
  710.                   gotoAndStop("MokoBouffe");
  711.                }
  712.             }
  713.          }
  714.          else if(eval("/Variables:VersEntree2") == 1)
  715.          {
  716.             if(eval("/Variables:Tableau") ne "ZoneDeplace/GtsSteppen")
  717.             {
  718.                if(getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) < getProperty("/Gts/" + eval("/Variables:Tableau"), _X) + 1 and getProperty("/Gts/" + eval("/Variables:Tableau"), _X) - 1 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) and getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) < getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) + 1 and getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) - 1 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y))
  719.                {
  720.                   setProperty("/Gts/" + eval("/Variables:BebitteCours"), _X, getProperty("/Gts/" + eval("/Variables:Tableau"), _X));
  721.                   setProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y, getProperty("/Gts/" + eval("/Variables:Tableau"), _Y));
  722.                   if(eval("/Variables:TableauTemp") eq "Entree2")
  723.                   {
  724.                      if(eval("/Variables:Tableau") eq "Entree21")
  725.                      {
  726.                         set("/Variables:Tableau","Entree22");
  727.                         set("/Variables:Direction",1);
  728.                      }
  729.                      else if(eval("/Variables:Tableau") eq "Entree22")
  730.                      {
  731.                         set("/Variables:Tableau","Entree23");
  732.                         set("/Variables:Direction",1);
  733.                      }
  734.                      else if(eval("/Variables:Tableau") eq "Entree23")
  735.                      {
  736.                         set("/Variables:Tableau","Entree24");
  737.                         set("/Variables:Direction",1);
  738.                      }
  739.                      else if(eval("/Variables:Tableau") eq "Entree24" and getProperty("/Gts", _currentframe) == 3)
  740.                      {
  741.                         set("/Variables:Tableau","ZoneDeplace/GtsSteppen");
  742.                         set("/Variables:Direction",1);
  743.                      }
  744.                   }
  745.                   else if(eval("/Variables:Tableau") eq "Entree2")
  746.                   {
  747.                      set("/Variables:VersEntree2",0);
  748.                      setProperty("/Gts/Bebitte", _visible, 1);
  749.                      setProperty("/Gts/Bebitte" + eval("/Variables:Tableau"), _visible, 0);
  750.                      set("/Variables:BebitteCours","Bebitte");
  751.                      set("/Variables:Tableau",eval("/Variables:TableauTemp"));
  752.                   }
  753.                   else if(eval("/Variables:Tableau") eq "Entree21")
  754.                   {
  755.                      set("/Variables:Direction",0);
  756.                      set("/Variables:Tableau","Entree2");
  757.                   }
  758.                   else if(eval("/Variables:Tableau") eq "Entree22")
  759.                   {
  760.                      set("/Variables:Direction",0);
  761.                      set("/Variables:Tableau","Entree21");
  762.                   }
  763.                   else if(eval("/Variables:Tableau") eq "Entree23")
  764.                   {
  765.                      set("/Variables:Direction",0);
  766.                      set("/Variables:Tableau","Entree22");
  767.                   }
  768.                   else if(eval("/Variables:Tableau") eq "Entree24")
  769.                   {
  770.                      set("/Variables:Direction",0);
  771.                      set("/Variables:Tableau","Entree23");
  772.                   }
  773.                   else if(eval("/Variables:Tableau") eq "ZoneDeplace/GtsSteppen")
  774.                   {
  775.                      set("/Variables:Direction",0);
  776.                      set("/Variables:Tableau","Entree24");
  777.                   }
  778.                }
  779.             }
  780.             else if(getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) < getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) + 20 and getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) - 20 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) and getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) < getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) + 20 and getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) - 20 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y))
  781.             {
  782.                tellTarget("/Animatiques")
  783.                {
  784.                   gotoAndStop("MokoBouffe");
  785.                }
  786.             }
  787.          }
  788.          else if(eval("/Variables:VersEntree3") == 1)
  789.          {
  790.             if(eval("/Variables:Tableau") ne "ZoneDeplace/GtsSteppen")
  791.             {
  792.                if(getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) < getProperty("/Gts/" + eval("/Variables:Tableau"), _X) + 1 and getProperty("/Gts/" + eval("/Variables:Tableau"), _X) - 1 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) and getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) < getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) + 1 and getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) - 1 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y))
  793.                {
  794.                   setProperty("/Gts/" + eval("/Variables:BebitteCours"), _X, getProperty("/Gts/" + eval("/Variables:Tableau"), _X));
  795.                   setProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y, getProperty("/Gts/" + eval("/Variables:Tableau"), _Y));
  796.                   if(eval("/Variables:TableauTemp") eq "Entree3")
  797.                   {
  798.                      if(eval("/Variables:Tableau") eq "Entree31")
  799.                      {
  800.                         set("/Variables:Tableau","ZoneDeplace/GtsSteppen");
  801.                         set("/Variables:Direction3",1);
  802.                      }
  803.                   }
  804.                   else if(eval("/Variables:Tableau") eq "Entree3")
  805.                   {
  806.                      set("/Variables:VersEntree3",0);
  807.                      setProperty("/Gts/Bebitte", _visible, 1);
  808.                      setProperty("/Gts/Bebitte" + eval("/Variables:Tableau"), _visible, 0);
  809.                      set("/Variables:BebitteCours","Bebitte");
  810.                      set("/Variables:Tableau",eval("/Variables:TableauTemp"));
  811.                   }
  812.                   else if(eval("/Variables:Tableau") eq "Entree31")
  813.                   {
  814.                      set("/Variables:Direction3",0);
  815.                      set("/Variables:Tableau","Entree3");
  816.                   }
  817.                   else if(eval("/Variables:Tableau") eq "ZoneDeplace/GtsSteppen")
  818.                   {
  819.                      set("/Variables:Direction3",0);
  820.                      set("/Variables:Tableau","Entree31");
  821.                   }
  822.                }
  823.             }
  824.             else if(getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) < getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) + 20 and getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) - 20 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) and getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) < getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) + 20 and getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) - 20 < getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y))
  825.             {
  826.                tellTarget("/Animatiques")
  827.                {
  828.                   gotoAndStop("MokoBouffe");
  829.                }
  830.             }
  831.          }
  832.          if(eval("/Variables:Tableau") ne "ZoneDeplace/GtsSteppen")
  833.          {
  834.             DistanceX = getProperty("/Gts/" + eval("/Variables:Tableau"), _X) - getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X);
  835.             DistanceY = getProperty("/Gts/" + eval("/Variables:Tableau"), _Y) - getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y);
  836.          }
  837.          else
  838.          {
  839.             DistanceX = getProperty("/Gts/ZoneDeplace/GtsSteppen", _X) * (getProperty("/Gts/ZoneDeplace", _xscale) / 100) + getProperty("/Gts/ZoneDeplace", _X) - getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X);
  840.             DistanceY = getProperty("/Gts/ZoneDeplace/GtsSteppen", _Y) * (getProperty("/Gts/ZoneDeplace", _yscale) / 100) + getProperty("/Gts/ZoneDeplace", _Y) - getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y);
  841.          }
  842.          if(Math.abs(DistanceY) < Math.abs(DistanceX))
  843.          {
  844.             MoveX = DistanceX / Math.abs(DistanceX) / 2;
  845.             MoveY = DistanceY / Math.abs(DistanceX) / 2;
  846.          }
  847.          else
  848.          {
  849.             MoveY = DistanceY / Math.abs(DistanceY) / 2;
  850.             MoveX = DistanceX / Math.abs(DistanceY) / 2;
  851.          }
  852.          setProperty("/Gts/" + eval("/Variables:BebitteCours"), _X, getProperty("/Gts/" + eval("/Variables:BebitteCours"), _X) + MoveX);
  853.          setProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y, getProperty("/Gts/" + eval("/Variables:BebitteCours"), _Y) + MoveY);
  854.       }
  855.    }
  856.    setProperty("_root.Gts.ZoneDeplace.GtsSteppen", _X, _root.Meg._x);
  857.    setProperty("_root.Gts.ZoneDeplace.GtsSteppen", _Y, _root.Meg._y);
  858. }
  859.